package com.zsc.spring.study.lifecycle;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfigOfLifeCycle {

    @Bean(initMethod="init",destroyMethod="detory")
    public Car car(){
        return new Car();
    }
}